package com.dyw.Dao;

import com.dyw.Domain.Student;
import com.dyw.vo.StudentBasic;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;

/**
 * @auther Devil
 * @create 2021-12-29-17:29
 */
public interface StudentDao {
    /**
     * 传入多个参数
     * @param id
     * @param name
     * @return
     */
    Student selectStudentByMulTiPara(int id, String name);

    /**
     * 通过注解传入多个参数
     * @param id
     * @param name
     * @return
     */
    Student selectStudentByMulTiParam(@Param("StudentId") int id, @Param("StudentName") String name);

    /**
     * 通过map传参 很少用到
     * @param map
     * @return
     */
    Student selectStudentByMap(HashMap<String,Object> map);

    /**
     * 查询表将输出的结果封装到一个值对象中
     * @param id
     * @return
     */
    StudentBasic selectStudentToVo(@Param("studentID") int id);

}
